<?php

// website 路由

use think\facade\Route;

// 访问 domain/
Route::get('/', function(){
    return 'Welcome To My ThinkPHP '.THINKPHP_VERSION.' Demo';
});

// 首页-主页-1，domain/home
Route::get('home', \app\controller\HomeController::class.'/index');

// 首页-主页-2，domain/home/index
Route::get('home/index', \app\controller\HomeController::class.'/index')->name('index');

// 表单令牌
Route::get('form-token/index', \app\controller\FormTokenController::class.'/index')->name('index');
Route::post('form-token/store', \app\controller\FormTokenController::class.'/store')->name('store');